<form action="<?php echo $aUrl; ?>" method="post" name="adminForm">
<table class="adminlist" cellspacing="1"> 
<thead>
<tr> 
	<th width="5%" nowrap="nowrap">
		<a title="排序" href="javascript:void();"> 
			排序
		</a> 
		<a title="保存排序" href="javascript:setHide('do', 'saveOrder');document.adminForm.submit();"> 
			<img alt="保存排序" src="<?php echo $adminPath; ?>/images/system/filesave.png"> 
		</a> 
	</th>
	<th class="title"> 
		<a href="javascript:void();">类别名称</a> 
	</th>
	<th width="5%" nowrap="nowrap"> 
		<a href="javascript:void();">文档数</a> 
	</th> 
	<th width="3%" nowrap="nowrap"> 
		<a href="javascript:void();">状态</a> 
	</th> 
	<th width="1%" nowrap="nowrap"> 
		<a href="javascript:void();">ID</a> 
	</th> 
	<th width="23%" nowrap="nowrap"> 
		<a href="javascript:void();">操作</a> 
	</th> 
</tr>
</thead>

<!-- tfoot> 
<tr> 
	<td colspan="12"> 
		<del class="container">
			<div class="pagination">
			</div>
		</del>				
	</td> 
</tr> 
</tfoot --> 

<tbody>

<?php foreach ($models as $key => $model) : ?>
<tr class="row<?php echo ($key%2); ?>"> 
	<td align="center">
		<input type="text" name="menu_order[<?php echo $model->category_id; ?>]" class="text_area" style="text-align: center;" size="5" value="<?php echo $model->menu_order; ?>" />
	</td> 
	<td>
		<span class="<?php echo $css[$key]; ?>" title="点击查看该类别的所有文档列表::<?php echo $model->category_name; ?>"> 
			<a href="<?php echo $bUrl; ?>posts/list&category_id=<?php echo $model->category_id; ?>"><?php echo $model->category_name; ?></a> 
		</span>
	</td>
	<td align="center"><?php echo $model->countPosts(); ?></td> 
	<td align="center"> 
		<?php if ($model->is_hide == 'y') : ?>
		<a href="javascript:edit(<?php echo $model->category_id; ?>, 'status');" title="修改为显示"> 
			<img src="<?php echo $adminPath; ?>/images/system/publish_x.png" border="0" alt="修改为显示" />
		</a>
		<?php else : ?>
		<a href="javascript:edit(<?php echo $model->category_id; ?>, 'status');" title="修改为隐藏"> 
			<img src="<?php echo $adminPath; ?>/images/system/tick.png" border="0" alt="修改为隐藏" />
		</a>
		<?php endif; ?>
	</td> 
	<td align="center"><?php echo $model->category_id; ?></td> 
	<td align="center"> 
		<a href="<?php echo CRequest::getInstance()->createUrl(array('pid' => $model->category_id), 'add'); ?>">添加子类别</a> | 
		<a href="#">预览</a> | 
		<a href="<?php echo CRequest::getInstance()->createUrl(array('id' => $model->category_id), 'edit'); ?>">修改</a> | 
		<a href="#">内容搬家</a> | 
		<a href="javascript:categories_del('<?php echo $model->category_id; ?>', '<?php echo $css[$key]; ?>');">删除</a>
	</td>
</tr>
<?php endforeach; ?>

</tbody>
</table>
<input type="hidden" name="id" value="" /> 
<input type="hidden" name="do" value="" /> 
</form>